﻿using System;
using Terraria.Social;

namespace Terraria.Achievements
{
	// Token: 0x020004A8 RID: 1192
	public class ConditionFloatTracker : AchievementTracker<float>
	{
		// Token: 0x060027E9 RID: 10217 RVA: 0x0001BF4A File Offset: 0x0001A14A
		public ConditionFloatTracker(float maxValue) : base(TrackerType.Float)
		{
			this._maxValue = maxValue;
		}

		// Token: 0x060027EA RID: 10218 RVA: 0x0001BF5A File Offset: 0x0001A15A
		public ConditionFloatTracker() : base(TrackerType.Float)
		{
		}

		// Token: 0x060027EB RID: 10219 RVA: 0x0001BF63 File Offset: 0x0001A163
		public override void ReportUpdate()
		{
			if (SocialAPI.Achievements != null && this._name != null)
			{
				SocialAPI.Achievements.UpdateFloatStat(this._name, this._value);
			}
		}

		// Token: 0x060027EC RID: 10220 RVA: 0x00006B58 File Offset: 0x00004D58
		protected override void Load()
		{
		}
	}
}
